public class Inch extends Length {

    public Inch(double val, String unit) {
        super(val, unit);
    }

    public Length converter(String unit){
        if (FOOT.equals(unit)) {
            return  new Foot(this.value / 12, unit);
        } else if (YARD.equals(unit)) {
            return  new Yard(this.value / 36, unit);
        }
        return this;
    }
}
